tools: fix "make distclean"
authorWei Liu <wei.liu2@citrix.com>
Tue, 20 Jan 2015 13:31:12 +0000 (13:31 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 27 Jan 2015 16:34:45 +0000 (16:34 +0000)
commitf9c9b127753e9eddf532d3133f57321dc3d927e4
tree0dbcce61f23796a99ae39fbcec979459cafbff25
parent675b2d22a05f026d2a4dfdeb528930b084745d14
tools: fix "make distclean"

The original rule to target "distclean" in tools/Rules.mk was in effect
"make clean". It should be "make distclean".

However not all Makefiles in subdirectories have distclean target
defined. So this patch also adds a bunch of distclean targets to various
Makefiles. They only depend on clean target and don't have any actions
in most cases.

With the patch applied, following command outputs 0 results:

  find tools -name 'Makefile*' -exec grep -L 'distclean' {} \+ \
     | grep -v ocaml | grep -v libfsimage

Ocaml and libfsimage are known to have distclean defined in a dedicated
rules file.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
57 files changed:
tools/Rules.mk
tools/blktap2/Makefile
tools/blktap2/control/Makefile
tools/blktap2/drivers/Makefile
tools/blktap2/include/Makefile
tools/blktap2/lvm/Makefile
tools/blktap2/vhd/Makefile
tools/blktap2/vhd/lib/Makefile
tools/console/Makefile
tools/console/testsuite/Makefile
tools/debugger/gdbsx/Makefile
tools/debugger/gdbsx/gx/Makefile
tools/debugger/gdbsx/xg/Makefile
tools/debugger/kdd/Makefile
tools/examples/Makefile
tools/firmware/hvmloader/Makefile
tools/firmware/hvmloader/acpi/Makefile
tools/firmware/rombios/32bit/Makefile
tools/firmware/rombios/32bit/tcgbios/Makefile
tools/firmware/rombios/Makefile
tools/firmware/vgabios/Makefile
tools/flask/Makefile
tools/flask/policy/Makefile
tools/flask/utils/Makefile
tools/hotplug/FreeBSD/Makefile
tools/hotplug/Linux/Makefile
tools/hotplug/Linux/systemd/Makefile
tools/hotplug/Makefile
tools/hotplug/NetBSD/Makefile
tools/hotplug/common/Makefile
tools/include/Makefile
tools/include/xen-foreign/Makefile
tools/libxc/Makefile
tools/memshr/Makefile
tools/misc/Makefile
tools/ocaml/Makefile
tools/ocaml/Makefile.rules
tools/ocaml/libs/Makefile
tools/pygrub/Makefile
tools/python/Makefile
tools/tests/mce-test/Makefile
tools/tests/mce-test/tools/Makefile
tools/tests/mem-sharing/Makefile
tools/tests/regression/Makefile
tools/tests/vhpet/Makefile
tools/tests/x86_emulator/Makefile
tools/tests/xen-access/Makefile
tools/xcutils/Makefile
tools/xenbackendd/Makefile
tools/xenmon/Makefile
tools/xenpaging/Makefile
tools/xenpmd/Makefile
tools/xenstat/Makefile
tools/xenstat/libxenstat/Makefile
tools/xenstat/xentop/Makefile
tools/xenstore/Makefile
tools/xentrace/Makefile